package com.zzm.controller;

import com.zzm.model.District;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("login")
public class LoginController {

    @RequestMapping(method = RequestMethod.GET)
    public String loginGet(HttpServletRequest request, HttpServletResponse response){
        return "index.html";
    }

    @RequestMapping(method = RequestMethod.POST)
    public String loginPost(HttpServletRequest request, HttpServletResponse response){
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        return "index.html";
    }


    @RequestMapping(value="/index")
    public String getDistrict(HttpServletRequest request, HttpServletResponse response){
        return "login/logins.html";
    }
}
